package com.tim.dao;

import com.tim.pojo.Car;

import java.sql.SQLException;
import java.util.List;

/**
 * 作者：Tim
 * 时间：2021/4/28 20:23
 */
public interface CarDao {
    int deleteCar(int id) throws SQLException;
    int addCar(Car car) throws SQLException;
    Car selectOne(int id) throws SQLException;
    int updateCar(Car car) throws SQLException;
    List<Car> searchCar(String carNum) throws SQLException;
    List<Car> limit(Integer currentPage,Integer pageSize,String carNum) throws SQLException;
    int count(String carNum) throws SQLException;
}
